<template>
  <div class="list-box">
    <div class="list-header">
      <el-breadcrumb separator="/">
        <el-breadcrumb-item>404</el-breadcrumb-item>
      </el-breadcrumb>
    </div>
    <div class="list-content">
      <el-card class="box-card">
        <div class="not-found-box">
          <div class="not-img">
            <img src="../../assets/imgs/404.png" alt="">
          </div>
          <div class="not-content">
            <span class="not-title">404</span>
            <span class="not-text">抱歉，当前页面不存在…</span>
            <span class="not-button">
              <el-button type="primary" @click="goIndex">返回首页</el-button>
            </span>
          </div>
        </div>
      </el-card>
    </div>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
import { useRouter } from 'vue-router'

export default defineComponent({
  name: 'not-found-404',
  components: {
  },
  data() {
    return {
    }
  },
  setup() {
    const router = useRouter()
    const goIndex = () => {
      router.push('/')
    }
    return {
      goIndex
    }
  },
})
</script>

<style scoped lang="less">
@import url(@/assets/styles/list.less);
.list-box .list-content .box-card {
  margin-top: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.not-found-box {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  .not-content {
    display: flex;
    flex-direction: column;
    .not-title {
      font-size: 56px;
      font-weight: 500;
      color: #000000;
      line-height: 64px;
    }
    .not-text {
      font-size: 16px;
      font-weight: 400;
      color: gray;
      line-height: 1em;
      margin-bottom: 24px;
      margin-top: 8px;
    }
    .not-button {
      width: 88px;
      height: 32px;
      .el-button {
      }
    }
  }
  .not-img {
    margin-right: 120px;
    &>img {
      display: block;
      width: 438px;
      height: 268px;
    }
  }
}
</style>
